package com.ma.service.order;

import com.ma.dto.OrderQueryParam;
import com.ma.pojo.Order;
import com.ma.pojo.OrderDetails;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

public interface OrderService {
    //查询所有订单数
    int queryAllOrder();
    //搜索功能整合
    String  queryOrder(HashMap map);
    //通过订单编号查询
    Order queryByOrderId(String orderId);
    //通过客户编号查询
    Order queryByCustomerId(String customerId);
    //查询订单详情ById
    String queryOrderDetailsById(String orderId);
    ////查询订单详情ById
    OrderDetails queryOrderDetails(String ID);
    //查询销售总金额
    float queryTotalPrice();
    //查询所有订单
    List<Order> queryAll();
    /**
     * 订单查询
     */
    List<Order> list(OrderQueryParam queryParam);
}
